\hypertarget{class_object3_d}{
\section{Object3D Class Reference}
\label{class_object3_d}\index{Object3D@{Object3D}}
}
{\tt \#include $<$Object3D.h$>$}

Inheritance diagram for Object3D::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{class_object3_d}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{class_object3_d_e3a1b17fb43ab59f5cf7b0ee21b9120b}{Object3D} ()
\item 
\hyperlink{class_object3_d_ee4116bf36befb1325b4a19d2ac27b30}{Object3D} (\hyperlink{class_mesh}{Mesh} $\ast$m)
\item 
\hyperlink{class_object3_d_a65d8c15553083382004f6d04d00827e}{Object3D} (\hyperlink{class_object3_d}{Object3D} \&\hyperlink{select__test_2main_8cpp_5a1283b02ea84ac8aa4883cb84869217}{obj})
\item 
\hyperlink{class_object3_d_73b016a1aa7eb3be3c49671f3054565d}{$\sim$Object3D} ()
\item 
void \hyperlink{class_object3_d_1bf52c29b00489e4571b04c503d6c669}{draw} ()
\begin{CompactList}\small\item\em Draw object onto screen. \item\end{CompactList}\item 
void \hyperlink{class_object3_d_a189f505c727b07e2a9d345d2c2154bd}{set\_\-com} (\hyperlink{class_vertex3_d}{Vertex3D} v)
\begin{CompactList}\small\item\em Changes center of mass. \item\end{CompactList}\item 
void \hyperlink{class_object3_d_5a613a1031178a48f0404b0c28f459b2}{compute\_\-com} ()
\begin{CompactList}\small\item\em Calculates the center of mass. \item\end{CompactList}\item 
void \hyperlink{class_object3_d_f6ac6a98b963ea85040d700d5ca00cc2}{move} (\hyperlink{class_vertex3_d}{Vertex3D} \hyperlink{merge__test_2main_8cpp_11e27e757a38bde7908e9ca4645951eb}{pos})
\begin{CompactList}\small\item\em Move object to determined position. \item\end{CompactList}\item 
void \hyperlink{class_object3_d_51d743c96447819a1279e3760474488b}{scale} (GLdouble factor, \hyperlink{_types_8h_ad86e256c96ab18e7ad05e06a5dd8208}{TAxis} axis)
\begin{CompactList}\small\item\em Scale object. \item\end{CompactList}\item 
void \hyperlink{class_object3_d_92d3887d5b13dcad97a10ca18c090595}{rotate} (GLdouble degree, \hyperlink{_types_8h_ad86e256c96ab18e7ad05e06a5dd8208}{TAxis} axis)
\begin{CompactList}\small\item\em Rotate object. \item\end{CompactList}\item 
void \hyperlink{class_object3_d_7d437beebffd4f3c3e1a5305e08bc74c}{extrude} (\hyperlink{class_triangle}{Triangle} $\ast$t, GLdouble dist)
\begin{CompactList}\small\item\em Extrude face of object. \item\end{CompactList}\item 
void \hyperlink{class_object3_d_27b5e4c5062e9f17027aafdcba328101}{merge} (\hyperlink{class_object3_d}{Object3D} $\ast$)
\begin{CompactList}\small\item\em Merge the Object with other. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}


Definition at line 27 of file Object3D.h.

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_object3_d_e3a1b17fb43ab59f5cf7b0ee21b9120b}{
\index{Object3D@{Object3D}!Object3D@{Object3D}}
\index{Object3D@{Object3D}!Object3D@{Object3D}}
\subsubsection[{Object3D}]{\setlength{\rightskip}{0pt plus 5cm}Object3D::Object3D ()}}
\label{class_object3_d_e3a1b17fb43ab59f5cf7b0ee21b9120b}




Definition at line 13 of file Object3D.cpp.\hypertarget{class_object3_d_ee4116bf36befb1325b4a19d2ac27b30}{
\index{Object3D@{Object3D}!Object3D@{Object3D}}
\index{Object3D@{Object3D}!Object3D@{Object3D}}
\subsubsection[{Object3D}]{\setlength{\rightskip}{0pt plus 5cm}Object3D::Object3D ({\bf Mesh} $\ast$ {\em m})}}
\label{class_object3_d_ee4116bf36befb1325b4a19d2ac27b30}




Definition at line 24 of file Object3D.cpp.\hypertarget{class_object3_d_a65d8c15553083382004f6d04d00827e}{
\index{Object3D@{Object3D}!Object3D@{Object3D}}
\index{Object3D@{Object3D}!Object3D@{Object3D}}
\subsubsection[{Object3D}]{\setlength{\rightskip}{0pt plus 5cm}Object3D::Object3D ({\bf Object3D} \& {\em obj})}}
\label{class_object3_d_a65d8c15553083382004f6d04d00827e}




Definition at line 31 of file Object3D.cpp.\hypertarget{class_object3_d_73b016a1aa7eb3be3c49671f3054565d}{
\index{Object3D@{Object3D}!$\sim$Object3D@{$\sim$Object3D}}
\index{$\sim$Object3D@{$\sim$Object3D}!Object3D@{Object3D}}
\subsubsection[{$\sim$Object3D}]{\setlength{\rightskip}{0pt plus 5cm}Object3D::$\sim$Object3D ()}}
\label{class_object3_d_73b016a1aa7eb3be3c49671f3054565d}




Definition at line 59 of file Object3D.cpp.

\subsection{Member Function Documentation}
\hypertarget{class_object3_d_5a613a1031178a48f0404b0c28f459b2}{
\index{Object3D@{Object3D}!compute\_\-com@{compute\_\-com}}
\index{compute\_\-com@{compute\_\-com}!Object3D@{Object3D}}
\subsubsection[{compute\_\-com}]{\setlength{\rightskip}{0pt plus 5cm}void Object3D::compute\_\-com ()}}
\label{class_object3_d_5a613a1031178a48f0404b0c28f459b2}


Calculates the center of mass. 



Definition at line 114 of file Object3D.cpp.\hypertarget{class_object3_d_1bf52c29b00489e4571b04c503d6c669}{
\index{Object3D@{Object3D}!draw@{draw}}
\index{draw@{draw}!Object3D@{Object3D}}
\subsubsection[{draw}]{\setlength{\rightskip}{0pt plus 5cm}void Object3D::draw ()}}
\label{class_object3_d_1bf52c29b00489e4571b04c503d6c669}


Draw object onto screen. 



Definition at line 64 of file Object3D.cpp.\hypertarget{class_object3_d_7d437beebffd4f3c3e1a5305e08bc74c}{
\index{Object3D@{Object3D}!extrude@{extrude}}
\index{extrude@{extrude}!Object3D@{Object3D}}
\subsubsection[{extrude}]{\setlength{\rightskip}{0pt plus 5cm}void Object3D::extrude ({\bf Triangle} $\ast$ {\em t}, \/  GLdouble {\em dist})}}
\label{class_object3_d_7d437beebffd4f3c3e1a5305e08bc74c}


Extrude face of object. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em triang}]: one of the triangles that compound the face \item[{\em dist}]: distance to extrude where sign determines direction \end{description}
\end{Desc}


Definition at line 183 of file Object3D.cpp.\hypertarget{class_object3_d_27b5e4c5062e9f17027aafdcba328101}{
\index{Object3D@{Object3D}!merge@{merge}}
\index{merge@{merge}!Object3D@{Object3D}}
\subsubsection[{merge}]{\setlength{\rightskip}{0pt plus 5cm}void Object3D::merge ({\bf Object3D} $\ast$ {\em b})}}
\label{class_object3_d_27b5e4c5062e9f17027aafdcba328101}


Merge the Object with other. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em b,:}]The object to merge \end{description}
\end{Desc}


Definition at line 235 of file Object3D.cpp.\hypertarget{class_object3_d_f6ac6a98b963ea85040d700d5ca00cc2}{
\index{Object3D@{Object3D}!move@{move}}
\index{move@{move}!Object3D@{Object3D}}
\subsubsection[{move}]{\setlength{\rightskip}{0pt plus 5cm}void Object3D::move ({\bf Vertex3D} {\em pos})}}
\label{class_object3_d_f6ac6a98b963ea85040d700d5ca00cc2}


Move object to determined position. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em pos}]: new position of the center of mass \end{description}
\end{Desc}


Definition at line 132 of file Object3D.cpp.\hypertarget{class_object3_d_92d3887d5b13dcad97a10ca18c090595}{
\index{Object3D@{Object3D}!rotate@{rotate}}
\index{rotate@{rotate}!Object3D@{Object3D}}
\subsubsection[{rotate}]{\setlength{\rightskip}{0pt plus 5cm}void Object3D::rotate (GLdouble {\em degree}, \/  {\bf TAxis} {\em axis})}}
\label{class_object3_d_92d3887d5b13dcad97a10ca18c090595}


Rotate object. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em degree}]: degrees to rotate \item[{\em axis}]: axis to rotate around \end{description}
\end{Desc}


Definition at line 172 of file Object3D.cpp.\hypertarget{class_object3_d_51d743c96447819a1279e3760474488b}{
\index{Object3D@{Object3D}!scale@{scale}}
\index{scale@{scale}!Object3D@{Object3D}}
\subsubsection[{scale}]{\setlength{\rightskip}{0pt plus 5cm}void Object3D::scale (GLdouble {\em factor}, \/  {\bf TAxis} {\em axis})}}
\label{class_object3_d_51d743c96447819a1279e3760474488b}


Scale object. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em factor}]: scale factor \item[{\em axis}]: scale the object restricted to axis \end{description}
\end{Desc}


Definition at line 141 of file Object3D.cpp.\hypertarget{class_object3_d_a189f505c727b07e2a9d345d2c2154bd}{
\index{Object3D@{Object3D}!set\_\-com@{set\_\-com}}
\index{set\_\-com@{set\_\-com}!Object3D@{Object3D}}
\subsubsection[{set\_\-com}]{\setlength{\rightskip}{0pt plus 5cm}void Object3D::set\_\-com ({\bf Vertex3D} {\em v})}}
\label{class_object3_d_a189f505c727b07e2a9d345d2c2154bd}


Changes center of mass. 



Definition at line 108 of file Object3D.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
/home/javier/Escritorio/core/include/\hyperlink{_object3_d_8h}{Object3D.h}\item 
/home/javier/Escritorio/core/src/\hyperlink{_object3_d_8cpp}{Object3D.cpp}\end{CompactItemize}
